<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <p>
        <a href="#A">AAA</a>
        <a href="#B">BBB</a>
        <a href="#C">CCC</a>
        <a href="#D">DDD</a>
      </p>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
      let vm = Vue({
        el: '#app',
        data: {},
        methods: {},
      })
      window.onhashchange = function () {
        console.log(window.location.hash)
      }
    </script>
  </body>
</html>
